Optimal. Leaf size=525 \[ -\frac {2 a^2 \sin (c+d x)}{b d \left (a^2-b^2\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \cos (c+d x)}}+\frac {\left (3 a^2-b^2\right ) \sin (c+d x) \sqrt {\sec (c+d x)} \sqrt {a+b \cos (c+d x)}}{b^2 d \left (a^2-b^2\right )}-\frac {\left (3 a^2-b^2\right ) \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{a b^2 d \sqrt {a+b} \sqrt {\sec (c+d x)}}+\frac {3 a \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} \Pi \left (\frac {a+b}{b};\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{b^3 d \sqrt {\sec (c+d x)}}+\frac {(3 a+b) \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{b^2 d \sqrt {a+b} \sqrt {\sec (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.09, antiderivative size = 525, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 8, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.320, Rules used = {4222, 2792, 3061, 3053, 2809, 2998, 2816, 2994} \[ -\frac {2 a^2 \sin (c+d x)}{b d \left (a^2-b^2\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \cos (c+d x)}}+\frac {\left (3 a^2-b^2\right ) \sin (c+d x) \sqrt {\sec (c+d x)} \sqrt {a+b \cos (c+d x)}}{b^2 d \left (a^2-b^2\right )}-\frac {\left (3 a^2-b^2\right ) \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{a b^2 d \sqrt {a+b} \sqrt {\sec (c+d x)}}+\frac {(3 a+b) \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{b^2 d \sqrt {a+b} \sqrt {\sec (c+d x)}}+\frac {3 a \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} \Pi \left (\frac {a+b}{b};\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{b^3 d \sqrt {\sec (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2792
Rule 2809
Rule 2816
Rule 2994
Rule 2998
Rule 3053
Rule 3061
Rule 4222
Rubi steps
\begin {align*} \int \frac {1}{(a+b \cos (c+d x))^{3/2} \sec ^{\frac {5}{2}}(c+d x)} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\cos ^{\frac {5}{2}}(c+d x)}{(a+b \cos (c+d x))^{3/2}} \, dx\\ &=-\frac {2 a^2 \sin (c+d x)}{b \left (a^2-b^2\right ) d \sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)}}-\frac {\left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\frac {a^2}{2}-\frac {1}{2} a b \cos (c+d x)-\frac {1}{2} \left (3 a^2-b^2\right ) \cos ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx}{b \left (a^2-b^2\right )}\\ &=-\frac {2 a^2 \sin (c+d x)}{b \left (a^2-b^2\right ) d \sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)}}+\frac {\left (3 a^2-b^2\right ) \sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \sin (c+d x)}{b^2 \left (a^2-b^2\right ) d}-\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\frac {1}{2} a \left (3 a^2-b^2\right )+a^2 b \cos (c+d x)+\frac {3}{2} a \left (a^2-b^2\right ) \cos ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{b^2 \left (a^2-b^2\right )}\\ &=-\frac {2 a^2 \sin (c+d x)}{b \left (a^2-b^2\right ) d \sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)}}+\frac {\left (3 a^2-b^2\right ) \sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \sin (c+d x)}{b^2 \left (a^2-b^2\right ) d}-\frac {\left (3 a \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\cos (c+d x)}}{\sqrt {a+b \cos (c+d x)}} \, dx}{2 b^2}-\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\frac {1}{2} a \left (3 a^2-b^2\right )+a^2 b \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{b^2 \left (a^2-b^2\right )}\\ &=\frac {3 a \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \Pi \left (\frac {a+b}{b};\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{b^3 d \sqrt {\sec (c+d x)}}-\frac {2 a^2 \sin (c+d x)}{b \left (a^2-b^2\right ) d \sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)}}+\frac {\left (3 a^2-b^2\right ) \sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \sin (c+d x)}{b^2 \left (a^2-b^2\right ) d}+\frac {\left (a (a-b) (3 a+b) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx}{2 b^2 \left (a^2-b^2\right )}-\frac {\left (a \left (3 a^2-b^2\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1+\cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{2 b^2 \left (a^2-b^2\right )}\\ &=-\frac {\left (3 a^2-b^2\right ) \sqrt {\cos (c+d x)} \csc (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{a b^2 \sqrt {a+b} d \sqrt {\sec (c+d x)}}+\frac {(3 a+b) \sqrt {\cos (c+d x)} \csc (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{b^2 \sqrt {a+b} d \sqrt {\sec (c+d x)}}+\frac {3 a \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \Pi \left (\frac {a+b}{b};\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{b^3 d \sqrt {\sec (c+d x)}}-\frac {2 a^2 \sin (c+d x)}{b \left (a^2-b^2\right ) d \sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)}}+\frac {\left (3 a^2-b^2\right ) \sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \sin (c+d x)}{b^2 \left (a^2-b^2\right ) d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 15.19, size = 1025, normalized size = 1.95 \[ \frac {\sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \left (-\frac {2 \sin (c+d x) a^3}{b^2 \left (b^2-a^2\right ) (a+b \cos (c+d x))}-\frac {2 \sin (c+d x) a^2}{b^2 \left (a^2-b^2\right )}\right )}{d}-\frac {\sqrt {\frac {1}{1-\tan ^2\left (\frac {1}{2} (c+d x)\right )}} \sqrt {\frac {a \tan ^2\left (\frac {1}{2} (c+d x)\right )-b \tan ^2\left (\frac {1}{2} (c+d x)\right )+a+b}{\tan ^2\left (\frac {1}{2} (c+d x)\right )+1}} \left (3 a^3 \tan ^5\left (\frac {1}{2} (c+d x)\right )+b^3 \tan ^5\left (\frac {1}{2} (c+d x)\right )-a b^2 \tan ^5\left (\frac {1}{2} (c+d x)\right )-3 a^2 b \tan ^5\left (\frac {1}{2} (c+d x)\right )-2 b^3 \tan ^3\left (\frac {1}{2} (c+d x)\right )+6 a^2 b \tan ^3\left (\frac {1}{2} (c+d x)\right )+6 a^3 \Pi \left (-1;\sin ^{-1}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {b-a}{a+b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\frac {a \tan ^2\left (\frac {1}{2} (c+d x)\right )-b \tan ^2\left (\frac {1}{2} (c+d x)\right )+a+b}{a+b}} \tan ^2\left (\frac {1}{2} (c+d x)\right )-6 a b^2 \Pi \left (-1;\sin ^{-1}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {b-a}{a+b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\frac {a \tan ^2\left (\frac {1}{2} (c+d x)\right )-b \tan ^2\left (\frac {1}{2} (c+d x)\right )+a+b}{a+b}} \tan ^2\left (\frac {1}{2} (c+d x)\right )-3 a^3 \tan \left (\frac {1}{2} (c+d x)\right )+b^3 \tan \left (\frac {1}{2} (c+d x)\right )+a b^2 \tan \left (\frac {1}{2} (c+d x)\right )-3 a^2 b \tan \left (\frac {1}{2} (c+d x)\right )-\left (3 a^3+3 b a^2-b^2 a-b^3\right ) E\left (\sin ^{-1}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {b-a}{a+b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \left (\tan ^2\left (\frac {1}{2} (c+d x)\right )+1\right ) \sqrt {\frac {a \tan ^2\left (\frac {1}{2} (c+d x)\right )-b \tan ^2\left (\frac {1}{2} (c+d x)\right )+a+b}{a+b}}+2 a b (a+b) F\left (\sin ^{-1}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {b-a}{a+b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \left (\tan ^2\left (\frac {1}{2} (c+d x)\right )+1\right ) \sqrt {\frac {a \tan ^2\left (\frac {1}{2} (c+d x)\right )-b \tan ^2\left (\frac {1}{2} (c+d x)\right )+a+b}{a+b}}+6 a^3 \Pi \left (-1;\sin ^{-1}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {b-a}{a+b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\frac {a \tan ^2\left (\frac {1}{2} (c+d x)\right )-b \tan ^2\left (\frac {1}{2} (c+d x)\right )+a+b}{a+b}}-6 a b^2 \Pi \left (-1;\sin ^{-1}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {b-a}{a+b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\frac {a \tan ^2\left (\frac {1}{2} (c+d x)\right )-b \tan ^2\left (\frac {1}{2} (c+d x)\right )+a+b}{a+b}}\right )}{b^2 \left (b^2-a^2\right ) d \sqrt {\tan ^2\left (\frac {1}{2} (c+d x)\right )+1} \left (b \left (\tan ^2\left (\frac {1}{2} (c+d x)\right )-1\right )-a \left (\tan ^2\left (\frac {1}{2} (c+d x)\right )+1\right )\right )} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 40.82, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\sqrt {b \cos \left (d x + c\right ) + a}}{{\left (b^{2} \cos \left (d x + c\right )^{2} + 2 \, a b \cos \left (d x + c\right ) + a^{2}\right )} \sec \left (d x + c\right )^{\frac {5}{2}}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \sec \left (d x + c\right )^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.25, size = 1675, normalized size = 3.19 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \sec \left (d x + c\right )^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {1}{{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2}\,{\left (a+b\,\cos \left (c+d\,x\right )\right )}^{3/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________